﻿using BoriPeter.FatSecret.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FatSecret.Messages
{
    public class WeightUpdate : FatSecretMessageBase<WeightUpdateModel>
    {
        private const string METHOD_VALUE = "weight.update";
        private const string CURRENT_WEIGHT_KG = "current_weight_kg";
        private const string DATE = "date";

        public WeightUpdate(decimal _currentWeightKg, DateTime _date)
            : base()
        {
            AddRequestParameter(METHOD, METHOD_VALUE);
            AddRequestParameter(CURRENT_WEIGHT_KG, _currentWeightKg);
            AddRequestParameter(DATE, _date);
        }
    }
}
